<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
	</head>
	<body>
		<a href="#" onclick="alert('百度一下')">百度一下</a>
		<a href="javascript: alert('百度一下');">百度一下</a>
		<a href="#" class="google">goole一下</a>
		<a href="#" class="bing">bing一下</a>

		<script>
			const googleAEl = document.querySelector('.google')
			googleAEl.addEventListener('click', function () {
				alert('hello world')
			})
		</script>

		<script src="./js/01.js编写的位置.js"></script>
	</body>
</html>
